layui.define(function(exports) {
	$(".header").on('mouseenter', function() {
		$(".register").css("background", "#ff3030");
		$(".headerDing").stop().animate({
			height: "60px"
		}, '300s');
	});
	$('.header').on('mouseleave', function() {
		$(".register").css("background", "#ff001a");
		$(".headerDing").stop().animate({
			height: "0px"
		}, '300s');
	});
	$(".dwell").hover(function(){
		$(this).css("box-shadow","0px 0px 4px 4px rgba(0,50,210,0.1)");
	},function(){
		$(this).css("box-shadow","");
	});
	$(".industryList li").hover(function(){
		$(this).css("box-shadow","0px 0px 4px 4px rgba(0,50,210,0.1)");
	},function(){
		$(this).css("box-shadow","")
	});
	$(".contractList").hover(function(){
		$(this).css({"background":"rgba(255,0,0,0.6)"});
		$(this).children('.cImg').animate({"margin-top":"20px"},"2s").siblings(".cHide").show();
	},function(){
		$(this).css({"background":""});
		$(this).children('.cImg').animate({"margin-top":"50px"},"2s").siblings(".cHide").hide();
	});
	$(".softwareList li").click(function(){
		$(this).addClass("first").siblings().removeClass("first");
		var index=$(this).index();
		$(".softwareText").eq(index).show().siblings().hide();
	});
	
	$(".policyList li").on("mouseover",function (){
		
		$(this).addClass("pFirst").siblings().removeClass("pFirst");
		var thisIndex = $(this).index();
		$(this).find("img").attr("src","/ceca_two/img/line"+thisIndex+".png");

		$(".pFirst dd").on("mouseover",function (){
			
			$(this).css({"box-shadow":"0 0 2px 2px #ddd","background":"#f7f7f7"});
			$(this).find("span").hide();
			$(this).find("a").show().css({"background":"#FF001A","color":"#fff"});;
		}).on("mouseout",function (){
			
			$(this).css({"box-shadow":"","background":""});
			$(this).find("span").show();
			$(this).find("a").hide().css({"background":"","color":""});
			
		})
	}).on("mouseout",function (){
		var thisIndex = $(this).index();
		$(this).find("img").attr("src","/ceca_two/img/lower"+thisIndex+".png");
	})
	
	exports('Index', {}); //注意，这里是模块输出的核心，模块名必须和use时的模块名一致
});